package com.mybaits.config;

import java.util.Map;

/**
 * 租户数据库存储
 * @author zyj
 * @date 2018/8/7 15:27
 */
public class DBIdentifier {

    /**
     * 用不同的工程编码来区分数据库
     */
    private static ThreadLocal<Map<String, String>> projectCode = new ThreadLocal<Map<String, String>>();


    public static Map<String, String> getProjectCode() {
        return projectCode.get();
    }

    public static void setProjectCode(Map<String, String> code) {
        projectCode.set(code);
    }
}
